package com.zf.shuashua.bean;

import android.text.TextUtils;

import java.util.List;

public class MessageLoveList {

    private boolean status;
    private List<DataBean> data;

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        private String id;
        private String type;
        private String notifiable_type;
        private String notifiable_id;
//        private String read_at;
//        private String created_at;
//        private Object updated_at;
        private String time;
        private DateBean data;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getNotifiable_type() {
            return notifiable_type;
        }

        public void setNotifiable_type(String notifiable_type) {
            this.notifiable_type = notifiable_type;
        }

        public String getNotifiable_id() {
            return notifiable_id;
        }

        public void setNotifiable_id(String notifiable_id) {
            this.notifiable_id = notifiable_id;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }

        public DateBean getData() {
            return data;
        }

        public void setData(DateBean data) {
            this.data = data;
        }

        public static class DateBean {
            private NewsBean news;

            public NewsBean getNews() {
                return news;
            }

            public void setNews(NewsBean news) {
                this.news = news;
            }

            public static class NewsBean {
                //类型 : comment 评论 video 视频 reply 回复评论
                private String type;
                //动作文案显示
                private String type_text;
                //评论用户ID
                private String user_id;
                //评论用户昵称
                private String user_name;
                //评论用户头像
                private String user_avatar;
                //视频ID
                private String video_id;
                //视频封面
                private String video_avatar;
                private String comment_id;
                private String reply_id;
                private String content;
                //相关评论的状态0被删除
                private String status;
                //相关评论的状态文案显示, ""或 "该评论已删除"
                private String status_text;

                public String getShowTypeText(){
                    return TextUtils.isEmpty(type_text) ? "评论了你的作品" : type_text;
                }

                public String getType() {
                    return type;
                }

                public void setType(String type) {
                    this.type = type;
                }

                public String getType_text() {
                    return type_text;
                }

                public void setType_text(String type_text) {
                    this.type_text = type_text;
                }

                public String getUser_id() {
                    return user_id;
                }

                public void setUser_id(String user_id) {
                    this.user_id = user_id;
                }

                public String getUser_name() {
                    return user_name;
                }

                public void setUser_name(String user_name) {
                    this.user_name = user_name;
                }

                public String getUser_avatar() {
                    return user_avatar;
                }

                public void setUser_avatar(String user_avatar) {
                    this.user_avatar = user_avatar;
                }

                public String getVideo_id() {
                    return video_id;
                }

                public void setVideo_id(String video_id) {
                    this.video_id = video_id;
                }

                public String getVideo_avatar() {
                    return video_avatar;
                }

                public void setVideo_avatar(String video_avatar) {
                    this.video_avatar = video_avatar;
                }

                public String getComment_id() {
                    return comment_id;
                }

                public void setComment_id(String comment_id) {
                    this.comment_id = comment_id;
                }

                public String getReply_id() {
                    return reply_id;
                }

                public void setReply_id(String reply_id) {
                    this.reply_id = reply_id;
                }

                public String getContent() {
                    return content;
                }

                public void setContent(String content) {
                    this.content = content;
                }

                public String getStatus() {
                    return status;
                }

                public void setStatus(String status) {
                    this.status = status;
                }

                public String getStatus_text() {
                    return status_text;
                }

                public void setStatus_text(String status_text) {
                    this.status_text = status_text;
                }
            }
        }
    }
}
